package com.zfast.spring5.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author zgn
 * @Description: HomeController
 * @date 2022/3/3 0003
 */
@Controller
public class HomeController {
    @GetMapping("/loginzgn")
    public String home() {
        return "loginzgn";
    }

    @GetMapping("/home")
    public String 测试Security页面(Model model) {
        model.addAttribute("test","这是测试数据");
        return "home";
    }
}
